﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace ARchGL.Platform.Electrocar.Core.Mappings
{
    public class CarBodysMapping : IEntityTypeConfiguration<CarBodys>
    {
        public void Configure(EntityTypeBuilder<CarBodys> builder)
        {
            builder.Property(p => p.Name).HasMaxLength(100);
            builder.Property(p => p.CreatorUserName).HasMaxLength(64);
            builder.Property(p => p.Value).HasMaxLength(2000);
        }
    }
}
